home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #15 / Monster Media Number 15 (Monster Media)(July 1996).ISO / maximus / stbar20.zip / CONTENT.CMD < prev    next >
OS/2 REXX Batch file  |  1996-04-09  |  1KB  |  59 lines

  1. @echo off
  2. rem ==--=StarBar archive extractor batch file=--==
  3. rem        OS/2 CMD
  4. rem
  5. rem ========================================================================
  6. rem
  7. rem first parameter : Path to node-specific temp dir
  8. rem second parameter : Path and File to be examined
  9. rem
  10. rem ========================================================================
  11. rem
  12. rem NOTE: This CMD file is simply a copy of the DOS BAT file! If you have
  13. rem       native OS/2 archivers, you will have to substitute their names
  14. rem       below.
  15. rem       Please let me know via NETMAIL how this works as it is untested!
  16.  
  17. cd %1
  18.  
  19. if exist %1\*.arj goto ARJ
  20. if exist %1\*.zip goto ZIP
  21. if exist %1\*.lzh goto LHA
  22. if exist %1\*.rar goto UNRAR
  23. if exist %1\*.arc goto PKUNPAK
  24. if exist %1\*.zoo goto ZOO
  25. if exist %1\*.pak goto PAK
  26.  
  27. rem    Add any other archivers you wish to support here, then follow the
  28. rem    examples below on extracting the info...
  29.  
  30. :ARJ
  31. arj e -y %2 *.*
  32. goto end
  33.  
  34. :ZIP
  35. pkunzip -o %2 *.*
  36. goto end
  37.  
  38. :LHA
  39. lha e /m+c+ %2 *.*
  40. goto end
  41.  
  42. :UNRAR
  43. unrar e -o+ %2 *.*
  44. goto end
  45.  
  46. :PKUNPAK
  47. pkunpak -r %2 *.*
  48. goto end
  49.  
  50. :ZOO
  51. zoo.exe e %2 *.*
  52. goto end
  53.  
  54. :PAK
  55. pak e/WA %2 *.*
  56. goto end
  57.  
  58. :end
  59.